package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "comment")
public class Comment implements Serializable {
     @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 关联订单id
     */
    @TableField(value = "ordesinfo_id")
    private Integer ordersinfoId;
    @TableField(exist = false)
    private Ordersinfo ordersinfo;
    /**
     * 评论时间
     */
    @TableField(value = "time")
    private Timestamp time;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;
    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_ORDES_ID = "ordesinfo_id";

    public static final String COL_TIME = "time";

    public static final String COL_CONTENT = "content";

    public static final String COL_ENABLE = "enable";
}